from rest_framework import serializers

import RouteManage.models


class StationSerializer(serializers.ModelSerializer):

    class Meta:
        model = RouteManage.models.Station
        fields = "__all__"


class RouteSerializer(serializers.ModelSerializer):

    class Meta:
        model = RouteManage.models.Route
        fields = "__all__"


class RotaSerializer(serializers.ModelSerializer):

    class Meta:
        model = RouteManage.models.Rota
        fields = "__all__"


class ServiceSerializer(serializers.ModelSerializer):

    class Meta:
        model = RouteManage.models.Service
        fields = "__all__"
